/**
 * 封装日志
 * @param type  info, debug,error,warn
 * @param message
 */
const logging=(type,message)=>{
    const UtcDate=new Date(new Date()).toLocaleString ('zh-CN',{
        timeZone: "Asia/Shanghai"
    });
    type ==='info' ? console.info(message,UtcDate) :
    type === 'debug' ? console.debug(message,UtcDate) :
    type === 'error' ? console.error(message,UtcDate) :
    type === 'warn' ? console.warn(message,UtcDate) :
    console.info(message);
}

module.exports=logging